package com.laicunba.pojo;

import java.math.BigDecimal;
import java.util.Date;

import org.springframework.stereotype.Component;

import com.laicunba.annotation.MyColumn;
import com.laicunba.annotation.MyTable;

@Component
@MyTable
public class AccountBalanceSheetDO extends BaseDO {
	private String accountId;
	private String rid;
	@MyColumn(type = "int8 DEFAULT 0")
	private long rowNum;
	private BigDecimal dr;// 发生金额
	private BigDecimal cr;// 发生金额
	private String optUserId;
	private String certificateId;// 凭证ID: 可以是订单ID,充值ID等
	private String remark;// 摘要
	private String ext;// 扩展字段
	private BigDecimal balance;// 余额
	private String sign;
	@MyColumn(type = "int DEFAULT 0")
	private int status; // 0:未对账,1:已对账,-1:坏账
	private String checkerUid;
	private String checkerRemark; // 对账者留言
	private Date checkDate;// 对账时间

	public void setRid(String rid) {
		this.rid = rid;
	}

	public String getRid() {
		return rid;
	}

	public String getAccountId() {
		return accountId;
	}

	public long getRowNum() {
		return rowNum;
	}

	public BigDecimal getDr() {
		return dr;
	}

	public BigDecimal getCr() {
		return cr;
	}

	public String getOptUserId() {
		return optUserId;
	}

	public String getCertificateId() {
		return certificateId;
	}

	public String getRemark() {
		return remark;
	}

	public String getExt() {
		return ext;
	}

	public BigDecimal getBalance() {
		return balance;
	}

	public String getSign() {
		return sign;
	}

	public int getStatus() {
		return status;
	}

	public String getCheckerUid() {
		return checkerUid;
	}

	public String getCheckerRemark() {
		return checkerRemark;
	}

	public Date getCheckDate() {
		return checkDate;
	}

	public void setAccountId(String accountId) {
		this.accountId = accountId;
	}

	public void setRowNum(long rowNum) {
		this.rowNum = rowNum;
	}

	/**
	 * 借
	 * 
	 * @param dr
	 */
	public void setDr(BigDecimal dr) {
		this.dr = dr;
	}

	/**
	 * 贷
	 * 
	 * @param cr
	 */
	public void setCr(BigDecimal cr) {
		this.cr = cr;
	}

	public void setOptUserId(String optUserId) {
		this.optUserId = optUserId;
	}

	public void setCertificateId(String certificateId) {
		this.certificateId = certificateId;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public void setExt(String ext) {
		this.ext = ext;
	}

	public void setBalance(BigDecimal balance) {
		this.balance = balance;
	}

	public void setSign(String sign) {
		this.sign = sign;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	public void setCheckerUid(String checkerUid) {
		this.checkerUid = checkerUid;
	}

	public void setCheckerRemark(String checkerRemark) {
		this.checkerRemark = checkerRemark;
	}

	public void setCheckDate(Date checkDate) {
		this.checkDate = checkDate;
	}

}
